
<div class="modal fade hide" id="mdlFilter" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">Filtrar Columnas</h3>
    </div>
    <form action="<?php echo url_for('stores/createFilter'); ?>" method="POST">

        <div class="modal-body">
            <input type="hidden" name="tableColumn" value="Locales" />
            <div class="row-fluid">
                <div class="span12">
                    <div class="box box-bordered box-color lightgrey">
                        <div class="box-title">
                            <h3><i class="icon-reorder"></i>Filtrar Columnas</h3>
                            <div class="actions">
                            <a href="<?php echo url_for('stores/clearFilter');?>" role="button" class="btn"><i class="icon-remove">Borrar</i></a>
                        </div>
                        </div>
                        
                        <div class="box-content nopadding">
                            <div class="tabs-container">
                                <ul class="tabs tabs-inline tabs-left">
                                    <li class='active'><a href="#channels" data-toggle='tab'><i class="icon-lock"></i>Canal</a></li>
                                    <li><a href="#customers" data-toggle='tab'><i class="icon-lock"></i>Cliente</a></li>
                                    <li><a href="#formats" data-toggle='tab'><i class="icon-lock"></i>Formato</a></li>
                                    <li><a href="#codeFormats" data-toggle='tab'><i class="icon-lock"></i>Cód Formato</a></li>
                                    <li><a href="#concessions" data-toggle='tab'><i class="icon-lock"></i>Concesión</a></li>
                                    <li><a href="#locations" data-toggle='tab'><i class="icon-lock"></i>Locaciones</a></li>
                                    <li><a href="#clusters" data-toggle='tab'><i class="icon-lock"></i>Clusters</a></li>
                                    <li><a href="#ubicacion" data-toggle='tab'><i class="icon-lock"></i>Ubicación</a></li>
                                </ul>
                            </div>
                            <div class="tab-content padding tab-content-inline">
                                <div class="tab-pane active" id="channels">

                                    <?php foreach ($channels as $value) { ?>
                                        <div class="check-line">
                                            <input type="checkbox" name="Channels[]" class='icheck-me' data-skin="square" data-color="blue" value="<?php echo $value[0]; ?>" <?php echo $value[1]; ?>> <label class='inline' for="c1"><?php echo $value[2]; ?></label>
                                        </div>

                                    <?php }
                                    ?>

                                </div>
                                <div class="tab-pane" id="customers">

                                    <?php foreach ($customers as $value) { ?>
                                        <div class="check-line">
                                            <input type="checkbox" name="Customers[]" class='icheck-me' data-skin="square" data-color="blue" value="<?php echo $value[0]; ?>" <?php echo $value[1]; ?>> <label class='inline' for="c1"><?php echo $value[2]; ?></label>
                                        </div>

                                    <?php }
                                    ?>
                                </div>
                                <div class="tab-pane" id="formats">

                                    <?php foreach ($formats as $value) { ?>
                                        <div class="check-line">
                                            <input type="checkbox" name="Formats[]" class='icheck-me' data-skin="square" data-color="blue" value="<?php echo $value[0]; ?>" <?php echo $value[1]; ?>> <label class='inline' for="c1"><?php echo $value[2]; ?></label>
                                        </div>

                                    <?php }
                                    ?>

                                </div>
                                <div class="tab-pane" id="codeFormats">

                                    <?php foreach ($codeFormats as $value) { ?>
                                        <div class="check-line">
                                            <input type="checkbox" name="CodeFormats[]" class='icheck-me' data-skin="square" data-color="blue" value="<?php echo $value[0]; ?>" <?php echo $value[1]; ?>> <label class='inline' for="c1"><?php echo $value[2]; ?></label>
                                        </div>

                                    <?php }
                                    ?>

                                </div>
                                <div class="tab-pane" id="concessions">

                                    <?php foreach ($concessions as $value) { ?>
                                        <div class="check-line">
                                            <input type="checkbox" name="Concessions[]" class='icheck-me' data-skin="square" data-color="blue" value="<?php echo $value[0]; ?>" <?php echo $value[1]; ?>> <label class='inline' for="c1"><?php echo $value[2]; ?></label>
                                        </div>

                                    <?php }
                                    ?>

                                </div>
                                <div class="tab-pane" id="locations">

                                    <?php foreach ($locations as $value) { ?>
                                        <div class="check-line">
                                            <input type="checkbox" name="Locations[]" class='icheck-me' data-skin="square" data-color="blue" value="<?php echo $value[0]; ?>" <?php echo $value[1]; ?>> <label class='inline' for="c1"><?php echo $value[2]; ?></label>
                                        </div>

                                    <?php }
                                    ?>

                                </div>
                                <div class="tab-pane" id="clusters">

                                    <?php foreach ($clusters as $value) { ?>
                                        <div class="check-line">
                                            <input type="checkbox" name="Clusters[]" class='icheck-me' data-skin="square" data-color="blue" value="<?php echo $value[0]; ?>" <?php echo $value[1]; ?>> <label class='inline' for="c1"><?php echo $value[2]; ?></label>
                                        </div>

                                    <?php }
                                    ?>

                                </div>
                                
                                <div class="tab-pane" id="ubicacion">

                                    Regiones
                                    <hr>
                                    <select id="regiones" multiple="multiple" name="Regiones[]">
                                        <option value="" >Seleccione</option>
                                        <?php foreach ($regiones as $value) { ?>
                                            <option value="<?php echo $value[0] ?>" <?php echo $value[1] ?>><?php echo $value[2] ?></option>
                                        <?php } ?>
                                    </select>
                                    <hr>

                                    Provincias
                                    <hr>
                                    <select id="provincias" multiple="multiple" name="Provincias[]">
                                        <option value="" >Seleccione</option>
                                        <?php foreach ($provincias as $value) { ?>
                                            <option value="<?php echo $value[0] ?>" <?php echo $value[1] ?>><?php echo $value[2] ?></option>
                                        <?php } ?>
                                    </select>
                                    <hr>

                                    Comunas
                                    <hr>
                                    <select id="comunas" multiple="multiple" name="Comunas[]">
                                        <option value="" >Seleccione</option>
                                        <?php foreach ($comunas as $value) { ?>
                                            <option value="<?php echo $value[0] ?>" <?php echo $value[1] ?>><?php echo $value[2] ?></option>
                                        <?php } ?>
                                    </select>
                                    <hr>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        <div class="modal-footer">
            <button class="btn" data-dismiss="modal" aria-hidden="true">Cerrar</button>
            <button class="btn btn-primary">Guardar</button>
        </div>
    </form>

</div>